package edu.hhu.java;

public class HeapSpaceInitial {

    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        long initialMemory = runtime.totalMemory() / 1024 / 1024;
        long maxMemory = runtime.maxMemory() / 1024 / 1024;
        System.out.println("-ms:" + initialMemory + "M");
        System.out.println("-mx:" + maxMemory + "M");

        System.out.println("系统内存为：" + initialMemory*64/1024 + "G");
        System.out.println("系统内存为：" + maxMemory*4/1024 + "G");
        System.out.println(runtime.hashCode());
    }
}
class Person{
    String name;
}
